class Solution(object):
    def getPermutation(self, n, k):


s = Solution()
print s.getPermutation(3,2) #132
'''
NN = 3! = 6
k = 2-1 = 1
result = ''
elements = [1,2,3]

NN = NN/3 = 2
i = 1/2 = 0
k = 1%2 = 1
result = "" + "1"

NN = NN/2 = 1
i = 1
k = 0
result = "1"+"3"

result = "132"
'''
